<template>
<div style="padding-top: 40px;">
    <group>
      <cell
        v-for="(item) in cellData"
        :title="item.timeSlotName"
        :key="item.id"
        is-link
        :link="{path:'/teacherAppointDetail/'+item.id}"
      >
      </cell>
    </group>
</div>    
</template>
<script>
 import { Group, Cell } from 'vux'

export default {
   data () {
     return {
       cellData: []
     }
   },
   created () {
     this.getList()
   },
   methods: {
     getList () {
       this.$http.get('/api/items/labAppointments').then(res => {
         this.cellData = res.data.content.records
         console.log('描述：', res.data.content.records)
       })
     }
   },
   components: {
     Cell,
     Group
   }
}
</script>
